<tmpl_include file='main_menu.html'>
<tmpl_if name='is_subforums'>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="cat_left_header"></td>
        <td class="cat_header_background"></td>
        <td class="cat_header_background"></td>
        <td class="cat_header_background"></td>
        <td class="cat_header_background"></td>
        <td class="cat_right_header"></td>
    </tr>
    <tr>
        <td class="cat_main_header_left"></td>
        <td class="cat_main_header_background" colspan="4">{tmpl_var name='parent_forum_name'}'s subforums</td>
        <td class="cat_main_header_right"></td>
    </tr>
    <tr>
        <td class="cat_sub_header_left"></td>
        <td colspan="2" class="cat_sub_header_background">{tmpl_var name='forum'}</td>
        <td class="cat_sub_header_background">{tmpl_var name='l_post'}</td>
        <td class="cat_sub_header_background">{tmpl_var name='topics_posts'}</td>
        <td class="cat_sub_header_right"></td>
    </tr>
    <tmpl_loop name='parent_subforums'>
        <tmpl_loop name='forums'>
            <tmpl_loop name='subforums'>
                <tmpl_if name='redirecting'>
                    <tr onMouseOver="this.bgColor='#ebf7fd';" onMouseOut="this.bgColor='white';" class="forum_row_highlight">
                        <td height="45"></td>
                        <td width="70" valign="middle" align="center" class="forum_border_bonly"><img src="/templates/default/images/forum_no_new_posts.gif" /></td>
                        <td class="forum_border_wleft" style="padding-left: 10px;" colspan="3"><a href="{tmpl_var name='sf_forum_url'}" class="forum_link">{tmpl_var name='sf_name'}</a><br>{tmpl_var name='sf_desc'}</td>
                        <td></td>
                    </tr>
                </tmpl_else>
                    <tr onMouseOver="this.bgColor='#ebf7fd';" onMouseOut="this.bgColor='white';" class="forum_row_highlight">
                        <td height="45"></td>
                        <td width="70" valign="middle" align="center" class="forum_border_bonly"><img src="/templates/default/images/forum_no_new_posts.gif" /></td>
                        <td class="forum_border_wleft" style="padding-left: 10px;"><a href="{tmpl_var name='sf_forum_url'}" class="forum_link">{tmpl_var name='sf_name'}</a><br>{tmpl_var name='sf_desc'}
                        </td>
                        <td style="padding-left: 10px;" class="forum_border_wleft">
                        <tmpl_if name='sf_latest_post_date'>
                            <strong>Last Post</strong><em> - {tmpl_var name='sf_latest_post_title'}</em><br /><strong>By</strong> <em>{tmpl_var name='sf_latest_post_user'}</em><br /><strong>On</strong> <em>{tmpl_var name='sf_latest_post_date'}</em>
                        </tmpl_else>
                            <em>{tmpl_var name='n_posts'}</em>
                        </tmpl_if>
                        </td>
                        <td align="center"><div class="total_pt"><strong>{tmpl_var name='total_topics'}</strong> {tmpl_var name='topics'}<br /><strong>{tmpl_var name='total_posts'}</strong> {tmpl_var name='posts'}</div></td>
                        <td></td>
                    </tr>
                </tmpl_if>
            </tmpl_loop>
        </tmpl_loop>
    </tmpl_loop>
    <tr>
    	<td height="35"></td>
    </tr>
    </table>
</tmpl_if>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
  <td></td>
  <td colspan="5" style="padding-left: 15px;">
  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr>
          <td>
            <table width="100" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="button_top_left"></td>
                <td bgcolor="#494949"></td>
                <td class="button_top_right"></td>
              </tr>
              <tr>
                <td bgcolor="#494949">&nbsp;</td>
                <td bgcolor="#494949" class="button_content"><a href="newtopic.php?forum_id={tmpl_var name='forum_id'}" class="footer">NEW TOPIC</a></td>
                <td bgcolor="#494949">&nbsp;</td>
              </tr>
            </table>
           </td>
           <td align="right">
           	{tmpl_var name='show_pagination'}
           </td>
        </tr>
      </table>
    </td>
</tr>
<tr>
  <td class="cat_left_header"></td>
  <td class="cat_header_background" colspan="5"></td>
  <td class="cat_right_header"></td>
</tr>
<tr>
  <td class="cat_main_header_left"></td>
  <td class="cat_main_header_background" colspan="5">{tmpl_var name='forum_name'}</td>
  <td class="cat_main_header_right"></td>
</tr>
<tr>
  <td class="cat_sub_header_left"></td>
  <td class="cat_sub_header_background">{tmpl_var name='topic_title'}</td>
  <td class="cat_sub_header_background">{tmpl_var name='Author'}</td>
  <td class="cat_sub_header_background">{tmpl_var name='views'}</td>
  <td class="cat_sub_header_background">Replies</td>
  <td class="cat_sub_header_background">{tmpl_var name='last_post'}</td>
  <td class="cat_sub_header_right"></td>
</tr>
<tmpl_if name='no_topics'>
<tr>
  <td colspan="6" class="forum_no_topics"><strong>No Topics</strong></td>
</tr>
</tmpl_else>
<tmpl_loop name='loop'>
    <tr onMouseOver="this.bgColor='#ebf7fd';" onMouseOut="this.bgColor='white';" class="forum_row_highlight">
      <td colspan="2" height="20" style="padding: 3px;"><a href="{tmpl_var name='topic_url'}">{tmpl_var name='topic_title'}</a></td>
      <td width="20%" align="center" style="padding: 3px;">{tmpl_var name='author'}</td>
      <td width="10%" align="center" style="padding: 3px;">{tmpl_var name='topic_views'}</td>
      <td width="10%" align="center" style="padding: 3px;"><strong>{tmpl_var name='total_replies'}</strong> Replies</td>
      <td width="20%" align="center" style="padding: 3px;">{tmpl_var name='last_post'}</td>
      <td></td>
    </tr>
</tmpl_loop>
</tmpl_if>
</table>